package com.hyl.t286mybatisboot.mapper;

import com.hyl.t286mybatisboot.entity.StorageRecord;
import com.hyl.t286mybatisboot.entity.vo.StorageRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordMapper {

    public List<StorageRecord> findByPage(@Param("beginIndex") Integer beginIndex,
                                          @Param("showSize") Integer showSize,
                                          @Param("goodsName") String goodsName,
                                          @Param("supplierId") Integer supplierId,
                                          @Param("payStatus") Integer payStatus);

    //根据条件查询供货商信息
    public List<StorageRecord> findByVo(StorageRecordVo vo);

    //根据条件查询供货商总数据==》行数
    public int findCount(StorageRecordVo vo);

    //根据编号，获取供货商信息
    public StorageRecord findById(Integer id);

    public int add(StorageRecord tmp);
    public int del(Integer Id);
    public int modify(StorageRecord tmp);
}
